package com.cq.hd.member.api;

import com.cq.hd.common.pagination.Page;
import com.cq.hd.common.response.Result;
import com.cq.hd.member.api.dto.AdminCommissionBillDto;
import com.cq.hd.member.api.dto.CommissionBillDto;
import com.cq.hd.member.api.vo.AdminCommissionBillPageVo;
import com.cq.hd.member.api.vo.CommissionBillVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "hd-o2o-member-service", contextId = "commission-bill-api")
public interface TbCommissionBillApi {

    // 佣金资金流水
    @GetMapping("/member/commissionBill/listCommissionBill")
    Result<List<CommissionBillVo>> listCommissionBill(@SpringQueryMap CommissionBillDto commissionBillDto);

    // 分页条件佣金资金流水
    @GetMapping("/member/commissionBill/pageCommissionBill")
    Result<Page<AdminCommissionBillPageVo>> pageCommissionBill(@SpringQueryMap AdminCommissionBillDto adminCommissionBillDto);
}
